package com.ask.service;

import com.ask.entity.AddressBook;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AddressBookService {
    List<AddressBook> list(AddressBook addressBook);

    void add(AddressBook addressBook);


    AddressBook getById(Long id);

    void update(AddressBook addressBook);

    void deleteById(Long id);

    void setDefaultAddress(AddressBook addressBook);
}
